package com.yunbao.demo.permission;

import com.yunbao.ioc.annotation.Component;
import com.yunbao.web.interceptor.HandlerInterceptor;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * Created by louisyuu on 2020/3/14 下午5:51
 */

@Component
public class TestPostHandleInterceptor implements HandlerInterceptor {


    /**
     * 这里会统一打印下返回值
     *
     * @param request
     * @param response
     * @param handler
     * @param result
     * @throws Exception
     */
    @Override
    public void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler, Object result) throws Exception {


        System.out.println("Print by TestPostHandleInterceptor  result is " + result);


    }
}
